package com.dwxt.community.dao;

import com.dwxt.community.entity.*;
import com.dwxt.community.entity.vo.*;
import org.apache.ibatis.annotations.*;

import java.util.*;

public interface BroadcastMapper {
    int countByExample(BroadcastExample example);

    int deleteByExample(BroadcastExample example);

    int deleteByPrimaryKey(String id);

    int insert(Broadcast record);

    int insertSelective(Broadcast record);

    List<Broadcast> selectByExample(BroadcastExample example);

    Broadcast selectByPrimaryKey(String id);


    int updateByExampleSelective(@Param("record") Broadcast record, @Param("example") BroadcastExample example);

    int updateByExample(@Param("record") Broadcast record, @Param("example") BroadcastExample example);

    int updateByPrimaryKeySelective(Broadcast record);

    int updateByPrimaryKey(Broadcast record);

    List<BroadcastColumnVo> selectAll(@Param("type")String type, @Param("name")String name);
    List<BroadcastColumnVo> selectDesk(@Param("type")String type, @Param("name")String name);

    int insertBatch(@Param("broadcasts")List<Broadcast> broadcasts);

    BroadcastColumnVo selectById(@Param("id")String id);

    List<BroadcastColumnVo> selectIncludeChild(@Param("type")String type);

    int deleteByColumnId(String id);

    List<Broadcast> selectByColumnId(String id);

    Broadcast selectIncludeColumnDescByPrimaryKey(String id);

    List<Broadcast> selectByRejectPrimaryKey(@Param("columnId")String columnId, @Param("id")String id);

    List<Broadcast> notBroadcastHotList();

    List<Broadcast> selectHotVideo();

}